SureCart\Models\Product S

Total Complexity 40
Dependencies 10
Dependents 25
Total lines 375
Lines of code 175
Logical lines of code 68
Comment lines 154
Methods 24
Properties 4

Methods 24

Method Rating Maintainability Complexity Lines of code
getFirstVariantWithStock()
S
62 4 12
activePrices()
S
56 3 20
getTemplateIdAttribute()
S
65 4 9
getPermalinkAttribute()
S
64 3 9
getImageUrl()
S
70 3 6
getJsonSchemaArray()
S
52 1 26
withActiveAndSortedPrices()
S
59 1 18
create()
S
65 2 9
getTemplatePartIdAttribute()
S
71 2 6
getImageSrcsetAttribute()
S
71 2 6
getTemplateContent()
S
73 2 5
getPageTitleAttribute()
S
80 1 3
getCheckoutPermalinkAttribute()
S
81 1 3
buyLink()
S
80 1 3
activeAdHocPrices()
S
69 1 8
getFeaturedMediaAttribute()
S
66 1 8
setProductMediasAttribute()
S
79 1 3
setPurchaseAttribute()
S
79 1 3
setVariantsAttribute()
S
79 1 3
setProductCollectionsAttribute()
S
79 1 3
getTemplateAttribute()
S
80 1 3
setPricesAttribute()
S
79 1 3
getTemplatePartAttribute()
S
79 1 3
getMetaDescriptionAttribute()
S
80 1 3